package com.econ.powercloud.ems.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author : wan
 * @Description :
 * @Date : 2020/11/25 15:08
 * @Modified by : wan
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "设备VO类")
public class EmsDeviceVO {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "设备code")
    private String deviceCode;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "产品key")
    private String productKey;

    @ApiModelProperty(value = "模块code")
    private String moduleCode;

    @ApiModelProperty(value = "设备标签")
    private String deviceLabel;

    @ApiModelProperty(value = "标签转集合")
    private List<String> labels;

    @ApiModelProperty(value = "对应iot中的设备code(iot中的一个设备会在ems中拆分成多个设备)")
    private String initDeviceCode;

    @ApiModelProperty(value = "上一级设备编号(例如：储能装置的上一级就是储能站)")
    private String parentDeviceCode;

    @ApiModelProperty(value = "设备类型，见枚举DeviceType")
    private Integer deviceType;

    @ApiModelProperty(value = "电池簇匹配位置")
    private String seat;

    @ApiModelProperty(value = "储能站编号")
    private String energyStationId;

    @ApiModelProperty(value = "储能装置编号")
    private String energyEquipmentId;

    @ApiModelProperty(value = "创建时间")
    private Long gmtCreate;

    @ApiModelProperty(value = "修改时间")
    private Long gmtModify;

    @ApiModelProperty(value = "子设备列表")
    private List<EmsDeviceVO> subDevices;
}